import os,shutil

# 全球男装
dir="Z:/跨境/男装/0-2023秋季/5-短袖T/模特图/7-多件装素材图/png/"
dir2="D:/Desk/系统图库/多件素材/原图库/全球男装/"
tag={'success':0,'fail':0,'ever':0,'type_wrong':0}

pics=os.listdir(dir)
for pic in pics:
    if pic.lower().endswith(('.png')):
        if not os.path.exists(dir2+pic):
            try:
                shutil.copy(dir+pic,"D:/Desk/系统图库/多件素材/增量/全球男装/"+pic)
                tag['success']+=1
            except:
                tag['fail']+=1
        else:
            tag['ever']+=1
    else:
        print(pic)
        # os.remove(dir+pic)
        tag['type_wrong']+=1
print("全球男装多件素材移动数据：")
print(tag)